<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h1>{{count}}</h1>
        <button @click="count++">加上</button>
        <hr>
        <!-- 页面第一次加载的时候显示这个数据，后续发生修改就不会受到影响 -->
        <h1 v-once>{{count}}</h1>
        <button @click="count++">加上</button>
    </div>
</body>
<script src="../js/http_cdn.bootcdn.net_ajax_libs_vue_2.6.6_vue.js"></script>
<script>
    new Vue({
        el: "#app",
        data: {
            count: 100,
        }
    })
</script>

</html>
